#import <UIKit/UIKit.h>

@interface MyDrawView : UIView
{
  id _app;

  CGPoint mousePoint;
  CGPoint left;
  CGPoint right;

  CGRect rect1;
  CGRect rect2;

  UIImage *image1;
  UIImage *image2;

  float bgcolor[4];
}

- (void)setSuperApp:(id)app;
- (void)setBgcolor:(float)r:(float)g:(float)b:(float)a;
- (BOOL)handleRect:(CGPoint)point;
- (void)swapImage;

@end

typedef enum {
	kUIViewSwipeUp = 1,
	kUIViewSwipeDown = 2,
	kUIViewSwipeLeft = 4,
	kUIViewSwipeRight = 8
} UIViewSwipeDirection;

